<template>
  <div id="app">
    <router-view/>
    <!--返回顶部-->
    <w-back-top/>
    <!--百度统计-->
    <b-d-statistical/>
  </div>
</template>

<script>
  import WBackTop from '../../components/pc/backTop/index'
  import BDStatistical from '../../components/pc/statistical/index'
  export default {
    name: 'App',
    metaInfo: {
      script: [
        { src: '//cdn.wangyabin.top/Extension/element-resize-detector/dist/element-resize-detector.min.js', type: 'text/javascript', body: true }
      ]
    },
    components: {
      WBackTop,
      BDStatistical
    },
    provide() {
      return {
        bgImage: this.bgImage
      }
    },
    methods: {
      bgImage (url, data = {}) {
        const retDara = {
          ...data
        }
        if (url) {
          retDara.backgroundImage = `url(${url})`
        }
        return retDara
      }
    }
  }
</script>
<style scoped>
  #app {
  }
</style>
